package com.codermn.demo4;

import java.util.ArrayList;

/**
 * @author jxau_scf
 * @date 2021/6/2 - 17:48
 */
public class Test {
    public static void main(String[] args) {
        Member manager = new Member("群主",100);
        Member one = new Member("成员A",0);
        Member two = new Member("成员B",0);
        Member three = new Member("成员C",0);

        manager.show();
        one.show();
        two.show();
        three.show();
        System.out.println("===============");
        ArrayList<Integer> list = manager.send(20, 3);
        one.receive(list);
        two.receive(list);
        three.receive(list);
        manager.show();
        one.show();
        two.show();
        three.show();
    }
}
